﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/TemplateAdmin.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcVehicleInsurance.Models.ClaimDetail>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2 class="ico_mug">Claim</h2>

    <table>
        <tr>
            <th></th>
            <th>
                claimNumber
            </th>
            <th>
                billNo
            </th>
            <th>
                policyStarDate
            </th>
            <th>
                policyEndDate
            </th>
            <th>
                placeOfAccident
            </th>
            <th>
                dateOfAccident
            </th>
            <th>
                insuredAmount
            </th>
            <th>
                claimableAmount
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.claimNumber }) %> |
                <%: Html.ActionLink("Details", "Details", new { id=item.claimNumber })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id=item.claimNumber })%>
            </td>
            <td>
                <%: item.claimNumber %>
            </td>
            <td>
                <%: item.billNo %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.policyStarDate) %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.policyEndDate) %>
            </td>
            <td>
                <%: item.placeOfAccident %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.dateOfAccident) %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.insuredAmount) %>
            </td>
            <td>
                <%: item.claimableAmount %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

